package com.wowudi.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wowudi.mapper.UserRoleMapper;
import com.wowudi.entity.UserRole;
import com.wowudi.service.UserRoleService;
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements UserRoleService{

    @Autowired
    private UserRoleMapper userRoleMapper;

    /**
    * Description: 添加用户与角色关联<br/>
    * date: 2022-3-17<br/>
    * @author 贺同志<br/>
    */
    @Override
    public int addUserRole(UserRole userRole) {
        int i = userRoleMapper.insert(userRole);
        return i;
    }


}
